Optimal. Leaf size=170 \[ \frac {(7 A-10 B) x}{2 a^2}-\frac {4 (2 A-3 B) \sin (c+d x)}{a^2 d}+\frac {(7 A-10 B) \cos (c+d x) \sin (c+d x)}{2 a^2 d}+\frac {(7 A-10 B) \cos ^3(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {4 (2 A-3 B) \sin ^3(c+d x)}{3 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {3056, 2827,
2715, 8, 2713} \begin {gather*} \frac {4 (2 A-3 B) \sin ^3(c+d x)}{3 a^2 d}-\frac {4 (2 A-3 B) \sin (c+d x)}{a^2 d}+\frac {(7 A-10 B) \sin (c+d x) \cos ^3(c+d x)}{3 a^2 d (\cos (c+d x)+1)}+\frac {(7 A-10 B) \sin (c+d x) \cos (c+d x)}{2 a^2 d}+\frac {x (7 A-10 B)}{2 a^2}+\frac {(A-B) \sin (c+d x) \cos ^4(c+d x)}{3 d (a \cos (c+d x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 2827
Rule 3056
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^2} \, dx &=\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \frac {\cos ^3(c+d x) (4 a (A-B)-3 a (A-2 B) \cos (c+d x))}{a+a \cos (c+d x)} \, dx}{3 a^2}\\ &=\frac {(7 A-10 B) \cos ^3(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {\int \cos ^2(c+d x) \left (3 a^2 (7 A-10 B)-12 a^2 (2 A-3 B) \cos (c+d x)\right ) \, dx}{3 a^4}\\ &=\frac {(7 A-10 B) \cos ^3(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {(7 A-10 B) \int \cos ^2(c+d x) \, dx}{a^2}-\frac {(4 (2 A-3 B)) \int \cos ^3(c+d x) \, dx}{a^2}\\ &=\frac {(7 A-10 B) \cos (c+d x) \sin (c+d x)}{2 a^2 d}+\frac {(7 A-10 B) \cos ^3(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {(7 A-10 B) \int 1 \, dx}{2 a^2}+\frac {(4 (2 A-3 B)) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{a^2 d}\\ &=\frac {(7 A-10 B) x}{2 a^2}-\frac {4 (2 A-3 B) \sin (c+d x)}{a^2 d}+\frac {(7 A-10 B) \cos (c+d x) \sin (c+d x)}{2 a^2 d}+\frac {(7 A-10 B) \cos ^3(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {4 (2 A-3 B) \sin ^3(c+d x)}{3 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(369\) vs. \(2(170)=340\).
time = 0.66, size = 369, normalized size = 2.17 \begin {gather*} \frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec \left (\frac {c}{2}\right ) \left (36 (7 A-10 B) d x \cos \left (\frac {d x}{2}\right )+36 (7 A-10 B) d x \cos \left (c+\frac {d x}{2}\right )+84 A d x \cos \left (c+\frac {3 d x}{2}\right )-120 B d x \cos \left (c+\frac {3 d x}{2}\right )+84 A d x \cos \left (2 c+\frac {3 d x}{2}\right )-120 B d x \cos \left (2 c+\frac {3 d x}{2}\right )-381 A \sin \left (\frac {d x}{2}\right )+516 B \sin \left (\frac {d x}{2}\right )+147 A \sin \left (c+\frac {d x}{2}\right )-156 B \sin \left (c+\frac {d x}{2}\right )-239 A \sin \left (c+\frac {3 d x}{2}\right )+342 B \sin \left (c+\frac {3 d x}{2}\right )-63 A \sin \left (2 c+\frac {3 d x}{2}\right )+118 B \sin \left (2 c+\frac {3 d x}{2}\right )-15 A \sin \left (2 c+\frac {5 d x}{2}\right )+30 B \sin \left (2 c+\frac {5 d x}{2}\right )-15 A \sin \left (3 c+\frac {5 d x}{2}\right )+30 B \sin \left (3 c+\frac {5 d x}{2}\right )+3 A \sin \left (3 c+\frac {7 d x}{2}\right )-3 B \sin \left (3 c+\frac {7 d x}{2}\right )+3 A \sin \left (4 c+\frac {7 d x}{2}\right )-3 B \sin \left (4 c+\frac {7 d x}{2}\right )+B \sin \left (4 c+\frac {9 d x}{2}\right )+B \sin \left (5 c+\frac {9 d x}{2}\right )\right )}{48 a^2 d (1+\cos (c+d x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 154, normalized size = 0.91
method | result | size |
derivativedivides | \(\frac {\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}-\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{3}-7 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+9 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {8 \left (-\frac {5 A}{4}+\frac {5 B}{2}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (-2 A +\frac {10 B}{3}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (-\frac {3 A}{4}+\frac {3 B}{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+2 \left (7 A -10 B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d \,a^{2}}\) | \(154\) |
default | \(\frac {\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}-\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{3}-7 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+9 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {8 \left (-\frac {5 A}{4}+\frac {5 B}{2}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (-2 A +\frac {10 B}{3}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (-\frac {3 A}{4}+\frac {3 B}{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+2 \left (7 A -10 B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d \,a^{2}}\) | \(154\) |
risch | \(\frac {7 x A}{2 a^{2}}-\frac {5 B x}{a^{2}}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} A}{8 a^{2} d}+\frac {i {\mathrm e}^{2 i \left (d x +c \right )} B}{4 a^{2} d}+\frac {i {\mathrm e}^{i \left (d x +c \right )} A}{a^{2} d}-\frac {15 i {\mathrm e}^{i \left (d x +c \right )} B}{8 a^{2} d}-\frac {i {\mathrm e}^{-i \left (d x +c \right )} A}{a^{2} d}+\frac {15 i {\mathrm e}^{-i \left (d x +c \right )} B}{8 a^{2} d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} A}{8 a^{2} d}-\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} B}{4 a^{2} d}-\frac {2 i \left (12 A \,{\mathrm e}^{2 i \left (d x +c \right )}-15 B \,{\mathrm e}^{2 i \left (d x +c \right )}+21 A \,{\mathrm e}^{i \left (d x +c \right )}-27 B \,{\mathrm e}^{i \left (d x +c \right )}+11 A -14 B \right )}{3 d \,a^{2} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{3}}+\frac {B \sin \left (3 d x +3 c \right )}{12 a^{2} d}\) | \(263\) |
norman | \(\frac {\frac {\left (7 A -10 B \right ) x}{2 a}+\frac {\left (A -B \right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d a}+\frac {5 \left (7 A -10 B \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {5 \left (7 A -10 B \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {5 \left (7 A -10 B \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {5 \left (7 A -10 B \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {\left (7 A -10 B \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}-\frac {\left (8 A -11 B \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}-\frac {\left (13 A -21 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 d a}-\frac {5 \left (25 A -37 B \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d a}-\frac {2 \left (77 A -115 B \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}-\frac {\left (94 A -143 B \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d a}-\frac {\left (349 A -521 B \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5} a}\) | \(332\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 372 vs.
\(2 (160) = 320\).
time = 0.49, size = 372, normalized size = 2.19 \begin {gather*} \frac {B {\left (\frac {4 \, {\left (\frac {9 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {20 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {15 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}\right )}}{a^{2} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {3 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}}} + \frac {\frac {27 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a^{2}} - \frac {60 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}\right )} - A {\left (\frac {6 \, {\left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {5 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{a^{2} + \frac {2 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}} + \frac {\frac {21 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a^{2}} - \frac {42 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}\right )}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 154, normalized size = 0.91 \begin {gather*} \frac {3 \, {\left (7 \, A - 10 \, B\right )} d x \cos \left (d x + c\right )^{2} + 6 \, {\left (7 \, A - 10 \, B\right )} d x \cos \left (d x + c\right ) + 3 \, {\left (7 \, A - 10 \, B\right )} d x + {\left (2 \, B \cos \left (d x + c\right )^{4} + {\left (3 \, A - 2 \, B\right )} \cos \left (d x + c\right )^{3} - 6 \, {\left (A - 2 \, B\right )} \cos \left (d x + c\right )^{2} - {\left (43 \, A - 66 \, B\right )} \cos \left (d x + c\right ) - 32 \, A + 48 \, B\right )} \sin \left (d x + c\right )}{6 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1425 vs.
\(2 (155) = 310\).
time = 3.27, size = 1425, normalized size = 8.38 \begin {gather*} \begin {cases} \frac {21 A d x \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {63 A d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {63 A d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {21 A d x}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {A \tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {18 A \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {90 A \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {110 A \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {39 A \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {30 B d x \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {90 B d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {90 B d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {30 B d x}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} - \frac {B \tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {24 B \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {138 B \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {160 B \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} + \frac {63 B \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{6 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 18 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 6 a^{2} d} & \text {for}\: d \neq 0 \\\frac {x \left (A + B \cos {\left (c \right )}\right ) \cos ^{4}{\left (c \right )}}{\left (a \cos {\left (c \right )} + a\right )^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 192, normalized size = 1.13 \begin {gather*} \frac {\frac {3 \, {\left (d x + c\right )} {\left (7 \, A - 10 \, B\right )}}{a^{2}} - \frac {2 \, {\left (15 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 30 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 24 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 9 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 18 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{3} a^{2}} + \frac {A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - B a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 21 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 27 \, B a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{6}}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.33, size = 189, normalized size = 1.11 \begin {gather*} \frac {x\,\left (7\,A-10\,B\right )}{2\,a^2}-\frac {\left (5\,A-10\,B\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (8\,A-\frac {40\,B}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (3\,A-6\,B\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2\right )}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {2\,\left (A-B\right )}{a^2}+\frac {3\,A-5\,B}{2\,a^2}\right )}{d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (A-B\right )}{6\,a^2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________